//
//  GTWeChatDynamicTool.h
//  GTW
//
//  Created by Ran on 15/11/13.
//  Copyright (c) 2015年 xcode. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "GTWeChatDynamicLinkButton.h"

@interface GTWeChatDynamicTool : NSObject

//获取字符串size
+ (CGSize)getTextSizeWithText: (NSString *)text width: (CGFloat)width attribute: (NSDictionary *)attribute;
+ (CGSize)getTextSizeWithText: (NSString *)text attribute: (NSDictionary *)attribute;
+ (CGFloat)getTextHeightWithAttribute: (NSDictionary *)attribute;

//快速设置属性
+ (void)setLabel: (UILabel *)label withAttribute: (NSDictionary *)attribute;
+ (void)setButton: (UIButton *)button withAttribute: (NSDictionary *)attribute;

//快速创建
+ (UILabel *)labelWithAttribute: (NSDictionary *)attribute;
+ (UIButton *)buttonWithAttribute: (NSDictionary *)attribute;
+ (GTWeChatDynamicLinkButton *)linkButtonWithAttribute: (NSDictionary *)attribute;

@end
